package demoMod.plugins.mod.sts.factory;

import com.intellij.ide.util.projectWizard.WizardContext;
import com.intellij.platform.ProjectTemplate;
import com.intellij.platform.ProjectTemplatesFactory;
import com.intellij.platform.templates.BuilderBasedTemplate;
import demoMod.plugins.mod.sts.module.SpireModModuleBuilder;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public class TemplateFactory extends ProjectTemplatesFactory {
    @Override
    public String [] getGroups() {
        return new String[]{"爬塔Mod工程模板"};
    }

    @Override
    public ProjectTemplate [] createTemplates(@Nullable String s, @NotNull WizardContext wizardContext) {
        return new ProjectTemplate[]{new BuilderBasedTemplate(new SpireModModuleBuilder())};
    }
}
